<?php

	class DayShot {

		public $imgSrc;
		public $name;
		public $description;
		public $date;
		public $localisation;
		public $uid;
		public $key_first;
		public $key_second;
		public $key_third;
		public $imgid;

		
		public function __construct($id='',$src,$uid,$description,$city,$country){
			$this->imgid = $id;
			$this->imgSrc=$src;
			$this->name=$src;
			$this->uid = $uid;
			$this->description=$description;
			$this->localisation = new Localisation($city,$country);
			
		}
		
		public function setDescription($description){		
			$this->description = $description;
		}
		public function getDescription(){
			return $this->description;
		}
		
	}

	class Localisation {
		
		public $city;
		public $country; 
		
		public function __construct($city,$country){
			$this->country = $country;
			$this->city = $city;			
		}
		
		public function setLocation($city,$country){
			$this->country = $country;
			$this->city = $city;		
		}
		
		public function getLocation(){
			return $this;
		}
	}

?>